<?php
//Define custom routes
return array(
	'/404.html' => '/site/error',
	'/error.html' => '/site/error',
	'/download/<token:([^\/\.]+)>.html' => '/site/download',
	'/documents.html' => '/site/documents',
	'/documents/<cateId:\d+>.html'=>'site/documents',
	'/documents/<cateId:\d+>/<postTitle:([^\/\.]+)>.<postId:\d+>.html'=>'site/ViewDocument',
	'/documents/latest-laws.html'=>array('/site/documents', 'defaultParams'=>array('latest-laws'=>'1')),
	'/faqs.html' => '/site/faqs',
	'/faqs/<cateId:\d+>.html'=>'site/faqs',
	'/tickets.html' => '/tickets/list',
	'/tickets/<postId:\d+>.html' => '/tickets/detail',
	'/tickets/<deptName:([^\/\.]+)>.<dept:\d+>.html' => '/tickets/list',
	'/tickets/create.html' => '/tickets/create',
	'/my-account.html' => '/user/index',	
	'/admin/faqs' => '/admin/faqs',
	'/admin/faqs/form' => array('/admin/faqs','defaultParams'=>array('render'=>'form')),
	'/admin/documents' => 'admin/documents',
	'/admin/documents/form' => array('/admin/documents','defaultParams'=>array('render'=>'form')),
	
	'/admin/users' => array('/admin/users', 'defaultParams'=>array('role'=>'members')),
	'/admin/members' => array('/admin/users', 'defaultParams'=>array('role'=>'members')),
	'/admin/staffs' => array('/admin/users', 'defaultParams'=>array('role'=>'staffs')),
);